﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using CoreApp.Utility;
using Microsoft.AspNetCore.Mvc;

namespace CoreApp.Web.Controllers
{
    public class HomeController : Controller
    {
        public IActionResult Index()
        {
            return View();
        }

        /// <summary>
        /// 测试日志
        /// </summary>
        /// <returns></returns>
        public IActionResult Test()
        {
            NLogHelper.Info("这是info日志");
            NLogHelper.Error("这是error日志", new Exception("测试"));

            return View();
        }
    }
}